package com.young.netty.gateway.context;

import java.util.HashMap;
import java.util.Map;

/**
 * 请求上下文实现类
 *
 * @author Young
 * @Date 2021-07-24 19:27
 */
public class FullHttpContext implements HttpContext {

    /**
     * 前端上下文
     */
    private FrontContext frontContext;

    /**
     * 后端上下文
     */
    private BackendContext backendContext;

    /**
     * 用户自定义上下文
     */
    private Map<String, Object> userContextMap;

    public FullHttpContext(FrontContext frontContext, BackendContext backendContext) {
        this.frontContext = frontContext;
        this.backendContext = backendContext;
        this.userContextMap = new HashMap<>(8);
    }

    @Override
    public FrontContext getFrontContext() {
        return null;
    }

    @Override
    public BackendContext getBackendContext() {
        return null;
    }

    @Override
    public Map getUserContextMap() {
        return null;
    }
}
